<?php

/**
 * The Driver Interface
 * @package Nina
 * @author John Main <john@thedaddy.org>, Chris Corbyn
 */
interface Nina_Db_Driver
{
	public function init(Nina_Registry $reg);
	public function connect();
	public function database();
	public function query($query);
	public function begin();
	public function commit();
	public function prepare($sql);
	public function rollback();
	public function escape($data);
	public function insertId();
	public function lastError();
	public function close();
	public function ping();
}
